package com.zmx.base.entity;

import com.zmx.common.common.entitys.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.*;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.hibernate.annotations.Where;

/**
 * @author zhaomxr
 * null
 */
@Data
@Entity
@Table(name = "base_community")
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper=true)
@Inheritance(strategy = InheritanceType.JOINED)
@Where(clause = "is_vaild = 1 and dr = 0")
public class BaseCommunity extends BaseEntity {

	/**
	 * 社区名称
	 */
	@Column(name = "name")
	private String name;

	/**
	 * 详细地址
	 */
	@Column(name = "address")
	private String address;

	/**
	 * 地址
	 */
	@Column(name = "area")
	private String area;

	/**
	 * 坐标x
	 */
	@Column(name = "dimensionX")
	private String dimensionx;

	/**
	 * 坐标维度y
	 */
	@Column(name = "dimensionY")
	private String dimensiony;

	/**
	 * 负责人
	 */
	@Column(name = "head")
	private String head;

	/**
	 * null
	 */
	@Column(name = "head_name")
	private String headName;

	/**
	 * null
	 */
	@Column(name = "head_phone")
	private String headPhone;

	/**
	 * 是否有效
	 */
	@Column(name = "is_vaild")
	private Integer isVaild;

	/**
	 * 排名
	 */
	@Column(name = "orders")
	private Integer orders;

	/**
	 * 小区描述
	 */
	@Column(name = "description")
	private String description;

	/**
	 * 备注
	 */
	@Column(name = "remark")
	private String remark;
}
